import { post } from "./http";
const baseURL = "message/";
// 新增数据
export const getAddMessage = (params) => {
  return post(`${baseURL}add`, params);
};

// 删除数据
export const getDeleteMessage = (params) => {
  return post(`${baseURL}delete`, params);
};

// 根据ID 修改数据
export const getMessageEdit = (params) => {
  return post(`${baseURL}update`, params);
};

// 分页 获取数据
export const getMessageList = (params) => {
  return post(`${baseURL}get/page/list`, params);
};

// 根据ID查询 数据
export const getByIdMessage = (params) => {
  return post(`${baseURL}get/by/id`, params);
};

